namespace Apps.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("API_ROLE")]
    public partial class API_ROLE
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public API_ROLE()
        {
            API_ROLEUSER = new HashSet<API_ROLEUSER>();
            API_DETAIL = new HashSet<API_DETAIL>();
        }

        [Key]
        [StringLength(40)]
        public string ROLE_ID { get; set; }

        [StringLength(30)]
        public string ROLE_NAME { get; set; }

        [StringLength(200)]
        public string ROLE_REMARK { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<API_ROLEUSER> API_ROLEUSER { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<API_DETAIL> API_DETAIL { get; set; }
    }
}
